Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zh-CN: create Speculative loading #25128

Merged
merged 12 commits into from
Dec 24, 2024
Merged

Conversation

melxy1997
Copy link
Contributor

zh-CN: create a translation of Speculative loading

Description

新增简中版本推测性加载(Speculative loading)

@melxy1997 melxy1997 requested a review from a team as a code owner December 17, 2024 13:22
@melxy1997 melxy1997 requested review from yin1999 and removed request for a team December 17, 2024 13:22
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Dec 17, 2024
Copy link
Contributor

github-actions bot commented Dec 17, 2024

Preview URLs

External URLs (4)

URL: /zh-CN/docs/Web/Performance/Speculative_loading
Title: 推测性加载

(comment last updated: 2024-12-24 03:38:47)

Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一些常规的问题,内容也请再检查一遍。你可以看我对 #25059 的修改,有很多东西被你漏掉了。

files/zh-cn/web/performance/speculative_loading/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/performance/speculative_loading/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/performance/speculative_loading/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/performance/speculative_loading/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/performance/speculative_loading/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/performance/speculative_loading/index.md Outdated Show resolved Hide resolved
melxy1997 and others added 3 commits December 22, 2024 16:42
no-diff

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@yin1999
Copy link
Member

yin1999 commented Dec 22, 2024

可以检查一下预览页,看我为啥要把星号放前面:#25128 (comment)

Comment on lines 144 to 147
> [!NOTE] > `prefetch` 操作的获取请求将产生一个包含 HTTP 标头 [`Sec-Purpose: prefetch`](/zh-CN/docs/Web/HTTP/Headers/Sec-Purpose) 的 HTTP 请求。服务器可能会使用此标头更改资源的缓存超时时间或执行其他特殊处理。
> 请求还将包括 {{HTTPHeader("Sec-Fetch-Dest")}} 标头,其值为 `empty`。
> 请求中的 {{HTTPHeader("Accept")}} 标头将与正常导航请求中使用的值匹配。这允许浏览器在导航后找到匹配的缓存资源。
> 如果返回响应,它将与请求一起缓存在 HTTP 缓存中。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里只能用旧格式(prettier 目前还有 bug,会使得它的格式乱掉),

Suggested change
> [!NOTE] > `prefetch` 操作的获取请求将产生一个包含 HTTP 标头 [`Sec-Purpose: prefetch`](/zh-CN/docs/Web/HTTP/Headers/Sec-Purpose) 的 HTTP 请求。服务器可能会使用此标头更改资源的缓存超时时间或执行其他特殊处理。
> 请求还将包括 {{HTTPHeader("Sec-Fetch-Dest")}} 标头,其值为 `empty`
> 请求中的 {{HTTPHeader("Accept")}} 标头将与正常导航请求中使用的值匹配。这允许浏览器在导航后找到匹配的缓存资源。
> 如果返回响应,它将与请求一起缓存在 HTTP 缓存中。
> **备注:** `prefetch` 操作的获取请求将产生一个包含 HTTP 标头 [`Sec-Purpose: prefetch`](/zh-CN/docs/Web/HTTP/Headers/Sec-Purpose) 的 HTTP 请求。服务器可能会使用此标头更改资源的缓存超时时间或执行其他特殊处理。请求还将包括 {{HTTPHeader("Sec-Fetch-Dest")}} 标头,其值为 `empty`。请求中的 {{HTTPHeader("Accept")}} 标头将与正常导航请求中使用的值匹配。这允许浏览器在导航后找到匹配的缓存资源。如果返回响应,它将与请求一起缓存在 HTTP 缓存中。

files/zh-cn/web/performance/speculative_loading/index.md Outdated Show resolved Hide resolved
@yin1999 yin1999 merged commit b47a54d into mdn:main Dec 24, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
Development

Successfully merging this pull request may close these issues.

3 participants